package io.renren.utils.wx.wxpay.impl;


import io.renren.utils.wx.wxpay.sdk.IWXPayDomain;
import io.renren.utils.wx.wxpay.sdk.WXPayConfig;
import org.springframework.stereotype.Component;

/**
 * 实现WXpayDomain接口，重新report方法和获取domain方法
 *
 * @author chenl
 */
@Component
public class MyWXPayDomain implements IWXPayDomain {

    @Override
    public void report(String domain, long elapsedTimeMillis, Exception ex) {

    }

    @Override
    public DomainInfo getDomain(WXPayConfig config) {
        MyConfig myConfig = (MyConfig) config;
        DomainInfo domainInfo = new DomainInfo(myConfig.getDomain(), true);
        return domainInfo;
    }

}
